package cn.weiyang.observer2;

import java.util.Observable;
import java.util.Observer;

public class ObserverA implements Observer{

	private int myState;
	public void update(Observable o, Object arg) {
		myState = ((ConcreteSubject) o).getState();
		
	}
	public int getMyState() {
		return myState;
	}
	public void setMyState(int myState) {
		this.myState = myState;
	}
	

}
